<?php

use Illuminate\Database\Migrations\Migration;
use Illuminate\Database\Schema\Blueprint;

class CreateFlowChildrensTable extends Migration {

	/**
	 * Run the migrations.
	 *
	 * @return void
	 */
	public function up()
	{
		Schema::create('flow_childrens', function(Blueprint $table)
		{
			$table->increments('id');
			$table->integer('flowId')->unsigned()->comment('流程id');
			$table->string('name')->nullable()->comment('名称');
			$table->integer('rank')->unsigned()->comment('层级');
			$table->integer('checkId')->nullable()->comment('审核人');
			$table->string('checkName')->nullable()->comment('审核人姓名');
			$table->string('info')->nullable()->comment('备注');
			$table->timestamps();
		});
	}


	/**
	 * Reverse the migrations.
	 *
	 * @return void
	 */
	public function down()
	{
		Schema::drop('flow_childrens');
	}

}
